import request from '@/utils/request'

// 查询miaomiao用户管理列表
export function listCommonuser(query) {
  return request({
    url: '/miaomiao/commonuser/list',
    method: 'get',
    params: query
  })
}

// 查询miaomiao用户管理详细
export function getCommonuser(userId) {
  return request({
    url: '/miaomiao/commonuser/' + userId,
    method: 'get'
  })
}

// 新增miaomiao用户管理
export function addCommonuser(data) {
  return request({
    url: '/miaomiao/commonuser',
    method: 'post',
    data: data
  })
}

// 修改miaomiao用户管理
export function updateCommonuser(data) {
  return request({
    url: '/miaomiao/commonuser',
    method: 'put',
    data: data
  })
}

// 删除miaomiao用户管理
export function delCommonuser(userId) {
  return request({
    url: '/miaomiao/commonuser/' + userId,
    method: 'delete'
  })
}
